package cn.com.dcsgo.library.admin.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author Dcsgo
 * @since 2024/9/6 08:24
 */
@Data
@AllArgsConstructor
@ApiModel(description = "借阅记录VO")
public class BorrowRecordVO {
    @ApiModelProperty("借阅人")
    private String name;

    @ApiModelProperty("复本编号")
    private Long copyId;

    @ApiModelProperty("图书名")
    private String title;

    @ApiModelProperty("借出日期")
    @JsonFormat(pattern = "yyyy年M月d日 H:m")
    private LocalDateTime borrowData;

    @ApiModelProperty("应还日期")
    @JsonFormat(pattern = "yyyy年M月d日 H:m")
    private LocalDateTime dueDate;

    @ApiModelProperty("借阅天数")
    private Long borrowDays;
}
